﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TeamDev.JQuery.Internals;

public static class jqAjaxExtensions
{
  public static jqExpression load(this jqExpression expr, string uri)
  {
    return expr.ExtendExpression("load", uri);
  }

  public static jqExpression load(this jqExpression expr, string uri, jsFunctionBlock completeeventObjecthandler)
  {
    return expr.ExtendExpression("load", uri, (string)completeeventObjecthandler);
  }

  public static jqExpression load(this jqExpression expr, string uri, object data)
  {
    return expr.ExtendExpression("load", uri, InternalUtils.ExtractData(data));
  }

  public static jqExpression load(this jqExpression expr, string uri, object data, jsFunctionBlock completeeventObjecthandler)
  {
    return expr.ExtendExpression("load", uri, InternalUtils.ExtractData(data), (string)completeeventObjecthandler);
  }
}

